package com.cros.pruebas2;

import java.awt.Dimension;

public class ReferenceVariable {
	public static void main(String argv[]){
		Dimension d = new Dimension(5,10);
		System.out.println("before:"+d.height);
		ReferenceVariable re = new ReferenceVariable();
		re.aumentaReference(d);
		System.out.println("after:"+d.height);
	}
	
	public void  aumentaReference(Dimension d){
		d.height+=1;
		
	}
}
